<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>求职列表 - 多维度筛选</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome 图标 -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
    
    <style>
        :root {
            --primary: #4361ee;
            --primary-light: #7209b7;
            --secondary: #f72585;
            --success: #4cc9f0;
            --warning: #f72585;
            --danger: #f72585;
            --text-primary: #212529;
            --text-secondary: #6c757d;
            --text-tertiary: #adb5bd;
            --bg-light: #f8f9fa;
            --bg-white: #ffffff;
            --bg-gray: #e9ecef;
            --border-light: #dee2e6;
            --radius: 10px;
            --radius-sm: 6px;
            --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background-color: var(--bg-light);
            color: var(--text-primary);
            padding-top: 56px;
            padding-bottom: 60px;
        }
        
        /* 顶部导航 */
        .top-nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 56px;
            background-color: var(--bg-white);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 16px;
            z-index: 1000;
            border-bottom: 1px solid var(--border-light);
        }
        
        .nav-title {
            font-size: 1.1rem;
            font-weight: 600;
            text-align: center;
            flex: 1;
        }
        
        .nav-action {
            color: var(--text-secondary);
            background: none;
            border: none;
            font-size: 1.2rem;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        /* 搜索区域 */
        .search-container {
            padding: 12px 16px;
            background-color: var(--bg-white);
            border-bottom: 1px solid var(--border-light);
        }
        
        .search-box {
            position: relative;
        }
        
        .search-input {
            width: 100%;
            padding: 12px 16px 12px 44px;
            border-radius: 30px;
            border: 1px solid var(--border-light);
            background-color: var(--bg-light);
            font-size: 0.9rem;
            outline: none;
            transition: all 0.2s ease;
        }
        
        .search-input:focus {
            background-color: var(--bg-white);
            border-color: var(--primary);
            box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.1);
        }
        
        .search-icon {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-tertiary);
            font-size: 1rem;
        }
        
        .search-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 8px;
        }
        
        .search-tag {
            background-color: rgba(67, 97, 238, 0.1);
            color: var(--primary);
            padding: 4px 10px;
            border-radius: 16px;
            font-size: 0.8rem;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .remove-tag {
            background: none;
            border: none;
            color: var(--primary);
            font-size: 0.9rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        /* 筛选方式切换 */
        .filter-tabs {
            display: flex;
            background-color: var(--bg-white);
            border-bottom: 1px solid var(--border-light);
        }
        
        .filter-tab {
            flex: 1;
            padding: 12px 0;
            text-align: center;
            font-size: 0.9rem;
            font-weight: 500;
            color: var(--text-secondary);
            border-bottom: 2px solid transparent;
            transition: all 0.2s ease;
        }
        
        .filter-tab.active {
            color: var(--primary);
            border-bottom-color: var(--primary);
        }
        
        /* 快捷筛选标签 */
        .quick-filters {
            padding: 10px 16px;
            background-color: var(--bg-white);
            border-bottom: 1px solid var(--border-light);
            overflow-x: auto;
            scrollbar-width: none;
        }
        
        .quick-filters::-webkit-scrollbar {
            display: none;
        }
        
        .filter-chips {
            display: flex;
            gap: 8px;
            white-space: nowrap;
        }
        
        .filter-chip {
            padding: 6px 14px;
            border-radius: 18px;
            font-size: 0.85rem;
            background-color: var(--bg-gray);
            color: var(--text-secondary);
            border: none;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: all 0.2s ease;
        }
        
        .filter-chip.active {
            background-color: var(--primary);
            color: white;
        }
        
        .filter-chip .icon {
            font-size: 0.9rem;
        }
        
        /* 高级筛选面板 */
        .advanced-filters {
            background-color: var(--bg-white);
            padding: 16px;
            border-bottom: 1px solid var(--border-light);
            display: none;
        }
        
        .advanced-filters.active {
            display: block;
        }
        
        .filter-section {
            margin-bottom: 16px;
        }
        
        .filter-section-title {
            font-size: 0.95rem;
            font-weight: 600;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .filter-options {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        
        .filter-option {
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 0.85rem;
            border: 1px solid var(--border-light);
            background-color: var(--bg-white);
            color: var(--text-secondary);
            transition: all 0.2s ease;
        }
        
        .filter-option.active {
            border-color: var(--primary);
            background-color: rgba(67, 97, 238, 0.1);
            color: var(--primary);
        }
        
        /* 筛选结果区 */
        .results-header {
            padding: 12px 16px;
            background-color: var(--bg-white);
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid var(--border-light);
        }
        
        .results-count {
            font-size: 0.9rem;
            color: var(--text-secondary);
        }
        
        .sort-options {
            display: flex;
            gap: 12px;
        }
        
        .sort-option {
            font-size: 0.85rem;
            color: var(--text-secondary);
            background: none;
            border: none;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .sort-option.active {
            color: var(--primary);
        }
        
        /* 求职列表 */
        .job-list {
            padding: 12px;
        }
        
        .job-card {
            background-color: var(--bg-white);
            border-radius: var(--radius);
            padding: 16px;
            margin-bottom: 12px;
            box-shadow: var(--shadow);
        }
        
        .job-card.has-image {
            padding-bottom: 0;
        }
        
        .job-header {
            margin-bottom: 12px;
        }
        
        .job-title {
            font-size: 1.05rem;
            font-weight: 600;
            margin-bottom: 6px;
            color: var(--text-primary);
        }
        
        .job-company {
            font-size: 0.85rem;
            color: var(--text-secondary);
            margin-bottom: 8px;
        }
        
        .job-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            font-size: 0.8rem;
            color: var(--text-tertiary);
        }
        
        .job-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 12px;
        }
        
        .job-tag {
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 0.75rem;
            background-color: var(--bg-gray);
            color: var(--text-secondary);
        }
        
        .job-tag.hot {
            background-color: rgba(247, 37, 133, 0.1);
            color: var(--secondary);
        }
        
        .job-description {
            font-size: 0.85rem;
            color: var(--text-secondary);
            line-height: 1.5;
            margin-bottom: 12px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .job-images {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 4px;
            margin-bottom: 12px;
            border-radius: var(--radius-sm);
            overflow: hidden;
        }
        
        .job-image {
            aspect-ratio: 1;
            overflow: hidden;
        }
        
        .job-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .job-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 12px;
            border-top: 1px solid var(--border-light);
        }
        
        .job-date {
            font-size: 0.8rem;
            color: var(--text-tertiary);
        }
        
        .job-actions {
            display: flex;
            gap: 10px;
        }
        
        .job-action {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: var(--bg-gray);
            color: var(--text-secondary);
            border: none;
            transition: all 0.2s ease;
        }
        
        .job-action.primary {
            background-color: rgba(67, 97, 238, 0.1);
            color: var(--primary);
        }
        
        /* 筛选悬浮按钮 */
        .filter-fab {
            position: fixed;
            right: 20px;
            bottom: 80px;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-color: var(--primary);
            color: white;
            box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            z-index: 900;
        }
        
        /* 底部导航 */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 60px;
            background-color: var(--bg-white);
            display: flex;
            justify-content: space-around;
            align-items: center;
            border-top: 1px solid var(--border-light);
            z-index: 1000;
        }
        
        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            font-size: 0.7rem;
            gap: 4px;
            flex: 1;
            height: 100%;
            text-decoration: none;
        }
        
        .nav-item.active {
            color: var(--primary);
        }
        
        .nav-icon {
            font-size: 1.2rem;
        }
        
        /* 筛选抽屉 */
        .filter-drawer {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background-color: var(--bg-white);
            border-top-left-radius: var(--radius);
            border-top-right-radius: var(--radius);
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
            z-index: 1010;
            transform: translateY(100%);
            transition: transform 0.3s ease;
            max-height: 80vh;
            overflow-y: auto;
        }
        
        .filter-drawer.open {
            transform: translateY(0);
        }
        
        .drawer-header {
            padding: 16px;
            border-bottom: 1px solid var(--border-light);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .drawer-title {
            font-size: 1.1rem;
            font-weight: 600;
        }
        
        .close-drawer {
            background: none;
            border: none;
            font-size: 1.2rem;
            color: var(--text-secondary);
        }
        
        .drawer-content {
            padding: 16px;
        }
        
        .range-slider {
            width: 100%;
            margin: 20px 0;
        }
        
        .range-labels {
            display: flex;
            justify-content: space-between;
            font-size: 0.8rem;
            color: var(--text-secondary);
            margin-top: 8px;
        }
        
        .drawer-actions {
            padding: 16px;
            border-top: 1px solid var(--border-light);
            display: flex;
            gap: 12px;
        }
        
        .drawer-btn {
            flex: 1;
            padding: 12px 0;
            border-radius: var(--radius-sm);
            font-size: 0.95rem;
            font-weight: 500;
            transition: all 0.2s ease;
        }
        
        .reset-btn {
            background-color: var(--bg-gray);
            color: var(--text-secondary);
            border: none;
        }
        
        .apply-btn {
            background-color: var(--primary);
            color: white;
            border: none;
        }
        
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1005;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }
        
        .overlay.show {
            opacity: 1;
            pointer-events: auto;
        }
        
        /* 提示消息 */
        .toast {
            position: fixed;
            bottom: 80px;
            left: 50%;
            transform: translateX(-50%);
            background-color: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 8px 16px;
            border-radius: 4px;
            z-index: 9999;
            font-size: 0.85rem;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .toast.show {
            opacity: 1;
        }
        
        /* 空状态 */
        .empty-state {
            padding: 40px 20px;
            text-align: center;
            display: none;
        }
        
        .empty-state.active {
            display: block;
        }
        
        .empty-icon {
            font-size: 3rem;
            color: var(--text-tertiary);
            margin-bottom: 16px;
        }
        
        .empty-text {
            font-size: 0.95rem;
            color: var(--text-secondary);
            margin-bottom: 24px;
        }
        
        .empty-action {
            padding: 8px 24px;
            border-radius: 20px;
            background-color: var(--primary);
            color: white;
            border: none;
            font-size: 0.9rem;
        }
    </style>
</head>
<body>
    <!-- 顶部导航 -->
    <div class="top-nav">
        <button class="nav-action" id="backBtn">
            <i class="fas fa-arrow-left"></i>
        </button>
        <div class="nav-title">职位搜索</div>
        <button class="nav-action" id="saveSearchBtn">
            <i class="far fa-save"></i>
        </button>
    </div>
    
    <!-- 搜索区域 -->
    <div class="search-container">
        <div class="search-box">
            <i class="fas fa-search search-icon"></i>
            <input type="text" class="search-input" placeholder="搜索职位、公司或关键词...">
        </div>
        <div class="search-tags">
            <div class="search-tag">
                <span>前端开发</span>
                <button class="remove-tag"><i class="fas fa-times"></i></button>
            </div>
            <div class="search-tag">
                <span>北京</span>
                <button class="remove-tag"><i class="fas fa-times"></i></button>
            </div>
            <div class="search-tag">
                <span>3-5年</span>
                <button class="remove-tag"><i class="fas fa-times"></i></button>
            </div>
        </div>
    </div>
    
    <!-- 筛选方式切换 -->
    <div class="filter-tabs">
        <div class="filter-tab active" data-tab="quick">快捷筛选</div>
        <div class="filter-tab" data-tab="advanced">高级筛选</div>
    </div>
    
    <!-- 快捷筛选标签 -->
    <div class="quick-filters">
        <div class="filter-chips">
            <button class="filter-chip active">
                <span>全部职位</span>
            </button>
            <button class="filter-chip">
                <i class="fas fa-briefcase icon"></i>
                <span>全职</span>
            </button>
            <button class="filter-chip">
                <i class="fas fa-hourglass-half icon"></i>
                <span>兼职</span>
            </button>
            <button class="filter-chip">
                <i class="fas fa-graduation-cap icon"></i>
                <span>实习</span>
            </button>
            <button class="filter-chip">
                <i class="fas fa-map-marker-alt icon"></i>
                <span>北京</span>
            </button>
            <button class="filter-chip">
                <i class="fas fa-map-marker-alt icon"></i>
                <span>上海</span>
            </button>
            <button class="filter-chip">
                <i class="fas fa-map-marker-alt icon"></i>
                <span>广州</span>
            </button>
            <button class="filter-chip">
                <i class="fas fa-map-marker-alt icon"></i>
                <span>深圳</span>
            </button>
            <button class="filter-chip">
                <i class="fas fa-money-bill-wave icon"></i>
                <span>10k+</span>
            </button>
            <button class="filter-chip">
                <i class="fas fa-money-bill-wave icon"></i>
                <span>20k+</span>
            </button>
            <button class="filter-chip">
                <i class="fas fa-clock icon"></i>
                <span>应届</span>
            </button>
            <button class="filter-chip">
                <i class="fas fa-clock icon"></i>
                <span>1-3年</span>
            </button>
        </div>
    </div>
    
    <!-- 高级筛选面板 -->
    <div class="advanced-filters">
        <div class="filter-section">
            <div class="filter-section-title">
                <i class="fas fa-briefcase"></i>
                <span>工作类型</span>
            </div>
            <div class="filter-options">
                <button class="filter-option active">全部</button>
                <button class="filter-option">全职</button>
                <button class="filter-option">兼职</button>
                <button class="filter-option">实习</button>
                <button class="filter-option">远程</button>
            </div>
        </div>
        
        <div class="filter-section">
            <div class="filter-section-title">
                <i class="fas fa-map-marker-alt"></i>
                <span>工作城市</span>
            </div>
            <div class="filter-options">
                <button class="filter-option active">全部</button>
                <button class="filter-option">北京</button>
                <button class="filter-option">上海</button>
                <button class="filter-option">广州</button>
                <button class="filter-option">深圳</button>
                <button class="filter-option">杭州</button>
                <button class="filter-option">成都</button>
                <button class="filter-option">武汉</button>
            </div>
        </div>
        
        <div class="filter-section">
            <div class="filter-section-title">
                <i class="fas fa-clock"></i>
                <span>工作经验</span>
            </div>
            <div class="filter-options">
                <button class="filter-option active">全部</button>
                <button class="filter-option">应届毕业生</button>
                <button class="filter-option">1年以内</button>
                <button class="filter-option">1-3年</button>
                <button class="filter-option">3-5年</button>
                <button class="filter-option">5-10年</button>
                <button class="filter-option">10年以上</button>
            </div>
        </div>
        
        <div class="filter-section">
            <div class="filter-section-title">
                <i class="fas fa-graduation-cap"></i>
                <span>学历要求</span>
            </div>
            <div class="filter-options">
                <button class="filter-option active">全部</button>
                <button class="filter-option">大专</button>
                <button class="filter-option">本科</button>
                <button class="filter-option">硕士</button>
                <button class="filter-option">博士</button>
            </div>
        </div>
        
        <div class="filter-section">
            <div class="filter-section-title">
                <i class="fas fa-money-bill-wave"></i>
                <span>薪资范围</span>
            </div>
            <div class="filter-options">
                <button class="filter-option active">全部</button>
                <button class="filter-option">5k以下</button>
                <button class="filter-option">5k-10k</button>
                <button class="filter-option">10k-15k</button>
                <button class="filter-option">15k-20k</button>
                <button class="filter-option">20k-30k</button>
                <button class="filter-option">30k以上</button>
            </div>
        </div>
    </div>
    
    <!-- 筛选结果区 -->
    <div class="results-header">
        <div class="results-count">找到 24 个职位</div>
        <div class="sort-options">
            <button class="sort-option active">
                <span>最新</span>
                <i class="fas fa-chevron-down"></i>
            </button>
            <button class="sort-option">
                <span>薪资</span>
                <i class="fas fa-chevron-down"></i>
            </button>
            <button class="sort-option">
                <span>热门</span>
                <i class="fas fa-chevron-down"></i>
            </button>
        </div>
    </div>
    
    <!-- 求职列表 -->
    <div class="job-list">
        <!-- 带图片的职位卡片 -->
        <div class="job-card has-image">
            <div class="job-header">
                <div class="job-title">资深前端开发工程师</div>
                <div class="job-company">科技有限公司 · 朝阳区</div>
                <div class="job-meta">
                    <span>15k-25k</span>
                    <span>·</span>
                    <span>3-5年</span>
                    <span>·</span>
                    <span>本科</span>
                </div>
            </div>
            
            <div class="job-tags">
                <span class="job-tag">React</span>
                <span class="job-tag">Vue</span>
                <span class="job-tag">JavaScript</span>
                <span class="job-tag hot">急聘</span>
            </div>
            
            <div class="job-description">
                负责公司核心产品的前端开发和优化，与产品经理和后端开发紧密合作，参与产品需求分析和技术方案设计。
            </div>
            
            <div class="job-images">
                <div class="job-image">
                    <img src="https://picsum.photos/id/0/300/300" alt="公司环境">
                </div>
                <div class="job-image">
                    <img src="https://picsum.photos/id/1/300/300" alt="公司环境">
                </div>
                <div class="job-image">
                    <img src="https://picsum.photos/id/2/300/300" alt="公司环境">
                </div>
            </div>
            
            <div class="job-footer">
                <div class="job-date">2小时前发布</div>
                <div class="job-actions">
                    <button class="job-action"><i class="far fa-bookmark"></i></button>
                    <button class="job-action primary"><i class="fas fa-paper-plane"></i></button>
                </div>
            </div>
        </div>
        
        <!-- 无图片的职位卡片 -->
        <div class="job-card">
            <div class="job-header">
                <div class="job-title">UI/UX设计师</div>
                <div class="job-company">设计工作室 · 海淀区</div>
                <div class="job-meta">
                    <span>12k-20k</span>
                    <span>·</span>
                    <span>1-3年</span>
                    <span>·</span>
                    <span>本科</span>
                </div>
            </div>
            
            <div class="job-tags">
                <span class="job-tag">Figma</span>
                <span class="job-tag">Sketch</span>
                <span class="job-tag">交互设计</span>
            </div>
            
            <div class="job-description">
                负责移动应用和网站的UI设计和用户体验优化，参与产品设计讨论，输出高质量的设计方案和原型。
            </div>
            
            <div class="job-footer">
                <div class="job-date">昨天 15:30发布</div>
                <div class="job-actions">
                    <button class="job-action"><i class="far fa-bookmark"></i></button>
                    <button class="job-action primary"><i class="fas fa-paper-plane"></i></button>
                </div>
            </div>
        </div>
        
        <!-- 带图片的职位卡片 -->
        <div class="job-card has-image">
            <div class="job-header">
                <div class="job-title">产品经理</div>
                <div class="job-company">互联网科技 · 西城区</div>
                <div class="job-meta">
                    <span>18k-30k</span>
                    <span>·</span>
                    <span>3-5年</span>
                    <span>·</span>
                    <span>本科</span>
                </div>
            </div>
            
            <div class="job-tags">
                <span class="job-tag">需求分析</span>
                <span class="job-tag">产品规划</span>
                <span class="job-tag">原型设计</span>
                <span class="job-tag hot">急聘</span>
            </div>
            
            <div class="job-description">
                负责公司核心产品的规划和设计，主导产品路线图，协调研发、设计等跨部门资源，推动产品落地和迭代。
            </div>
            
            <div class="job-images">
                <div class="job-image">
                    <img src="https://picsum.photos/id/20/300/300" alt="产品截图">
                </div>
                <div class="job-image">
                    <img src="https://picsum.photos/id/21/300/300" alt="产品截图">
                </div>
                <div class="job-image">
                    <img src="https://picsum.photos/id/22/300/300" alt="产品截图">
                </div>
            </div>
            
            <div class="job-footer">
                <div class="job-date">3天前发布</div>
                <div class="job-actions">
                    <button class="job-action"><i class="far fa-bookmark"></i></button>
                    <button class="job-action primary"><i class="fas fa-paper-plane"></i></button>
                </div>
            </div>
        </div>
        
        <!-- 无图片的职位卡片 -->
        <div class="job-card">
            <div class="job-header">
                <div class="job-title">Java后端开发工程师</div>
                <div class="job-company">软件开发公司 · 东城区</div>
                <div class="job-meta">
                    <span>20k-35k</span>
                    <span>·</span>
                    <span>5-10年</span>
                    <span>·</span>
                    <span>本科</span>
                </div>
            </div>
            
            <div class="job-tags">
                <span class="job-tag">Java</span>
                <span class="job-tag">Spring Boot</span>
                <span class="job-tag">微服务</span>
            </div>
            
            <div class="job-description">
                负责后端系统架构设计和核心模块开发，参与技术方案评审，解决系统性能问题，指导初级开发工程师。
            </div>
            
            <div class="job-footer">
                <div class="job-date">1周前发布</div>
                <div class="job-actions">
                    <button class="job-action"><i class="far fa-bookmark"></i></button>
                    <button class="job-action primary"><i class="fas fa-paper-plane"></i></button>
                </div>
            </div>
        </div>
    </div>
    
    <!-- 空状态 -->
    <div class="empty-state">
        <div class="empty-icon">
            <i class="fas fa-search"></i>
        </div>
        <div class="empty-text">没有找到符合条件的职位</div>
        <button class="empty-action">清除筛选条件</button>
    </div>
    
    <!-- 筛选悬浮按钮 -->
    <button class="filter-fab" id="filterFab">
        <i class="fas fa-filter"></i>
    </button>
    
    <!-- 底部导航 -->
    <div class="bottom-nav">
        <a href="#" class="nav-item">
            <i class="fas fa-home nav-icon"></i>
            <span>首页</span>
        </a>
        <a href="#" class="nav-item active">
            <i class="fas fa-search nav-icon"></i>
            <span>搜索</span>
        </a>
        <a href="#" class="nav-item">
            <i class="fas fa-briefcase nav-icon"></i>
            <span>职位</span>
        </a>
        <a href="#" class="nav-item">
            <i class="fas fa-user nav-icon"></i>
            <span>我的</span>
        </a>
    </div>
    
    <!-- 筛选抽屉 -->
    <div class="overlay" id="filterOverlay"></div>
    <div class="filter-drawer" id="filterDrawer">
        <div class="drawer-header">
            <div class="drawer-title">高级筛选</div>
            <button class="close-drawer" id="closeDrawer">
                <i class="fas fa-times"></i>
            </button>
        </div>
        
        <div class="drawer-content">
            <div class="filter-section">
                <div class="filter-section-title">
                    <i class="fas fa-industry"></i>
                    <span>行业类型</span>
                </div>
                <div class="filter-options">
                    <button class="filter-option active">全部</button>
                    <button class="filter-option">互联网</button>
                    <button class="filter-option">金融</button>
                    <button class="filter-option">教育</button>
                    <button class="filter-option">医疗</button>
                    <button class="filter-option">电商</button>
                    <button class="filter-option">游戏</button>
                    <button class="filter-option">企业服务</button>
                </div>
            </div>
            
            <div class="filter-section">
                <div class="filter-section-title">
                    <i class="fas fa-briefcase"></i>
                    <span>公司规模</span>
                </div>
                <div class="filter-options">
                    <button class="filter-option active">全部</button>
                    <button class="filter-option">初创公司</button>
                    <button class="filter-option">10-50人</button>
                    <button class="filter-option">50-100人</button>
                    <button class="filter-option">100-500人</button>
                    <button class="filter-option">500-1000人</button>
                    <button class="filter-option">1000人以上</button>
                </div>
            </div>
            
            <div class="filter-section">
                <div class="filter-section-title">
                    <i class="fas fa-hand-holding-usd"></i>
                    <span>融资阶段</span>
                </div>
                <div class="filter-options">
                    <button class="filter-option active">全部</button>
                    <button class="filter-option">未融资</button>
                    <button class="filter-option">天使轮</button>
                    <button class="filter-option">A轮</button>
                    <button class="filter-option">B轮</button>
                    <button class="filter-option">C轮</button>
                    <button class="filter-option">D轮及以上</button>
                    <button class="filter-option">上市公司</button>
                </div>
            </div>
            
            <div class="filter-section">
                <div class="filter-section-title">
                    <i class="fas fa-percent"></i>
                    <span>绩效奖金</span>
                </div>
                <div class="filter-options">
                    <button class="filter-option active">全部</button>
                    <button class="filter-option">13薪及以上</button>
                    <button class="filter-option">年终奖</button>
                    <button class="filter-option">股权激励</button>
                </div>
            </div>
            
            <div class="filter-section">
                <div class="filter-section-title">
                    <i class="fas fa-clock"></i>
                    <span>发布时间</span>
                </div>
                <div class="filter-options">
                    <button class="filter-option active">全部</button>
                    <button class="filter-option">今天</button>
                    <button class="filter-option">3天内</button>
                    <button class="filter-option">1周内</button>
                    <button class="filter-option">1个月内</button>
                </div>
            </div>
        </div>
        
        <div class="drawer-actions">
            <button class="drawer-btn reset-btn" id="resetFilters">重置</button>
            <button class="drawer-btn apply-btn" id="applyFilters">确认筛选</button>
        </div>
    </div>
    
    <!-- 提示消息元素 -->
    <div class="toast" id="toast"></div>
    
    <!-- Bootstrap JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        // DOM元素
        const backBtn = document.getElementById('backBtn');
        const saveSearchBtn = document.getElementById('saveSearchBtn');
        const filterTabs = document.querySelectorAll('.filter-tab');
        const advancedFilters = document.querySelector('.advanced-filters');
        const filterChips = document.querySelectorAll('.filter-chip');
        const filterOptions = document.querySelectorAll('.filter-option');
        const sortOptions = document.querySelectorAll('.sort-option');
        const filterFab = document.getElementById('filterFab');
        const filterDrawer = document.getElementById('filterDrawer');
        const filterOverlay = document.getElementById('filterOverlay');
        const closeDrawer = document.getElementById('closeDrawer');
        const resetFiltersBtn = document.getElementById('resetFilters');
        const applyFiltersBtn = document.getElementById('applyFilters');
        const removeTags = document.querySelectorAll('.remove-tag');
        const emptyState = document.querySelector('.empty-state');
        const jobList = document.querySelector('.job-list');
        
        // 筛选标签切换
        filterTabs.forEach(tab => {
            tab.addEventListener('click', function() {
                filterTabs.forEach(t => t.classList.remove('active'));
                this.classList.add('active');
                
                const tabType = this.getAttribute('data-tab');
                if (tabType === 'advanced') {
                    advancedFilters.classList.add('active');
                } else {
                    advancedFilters.classList.remove('active');
                }
            });
        });
        
        // 快捷筛选芯片点击
        filterChips.forEach(chip => {
            chip.addEventListener('click', function() {
                // 如果是"全部职位"，取消其他所有选中状态
                if (this.textContent.includes('全部职位')) {
                    filterChips.forEach(c => c.classList.remove('active'));
                    this.classList.add('active');
                    showToast('已显示全部职位');
                } else {
                    // 取消"全部职位"的选中状态
                    filterChips.forEach(c => {
                        if (c.textContent.includes('全部职位')) {
                            c.classList.remove('active');
                        }
                    });
                    
                    // 切换当前芯片状态
                    this.classList.toggle('active');
                    
                    // 统计选中的筛选条件
                    const activeCount = document.querySelectorAll('.filter-chip.active').length;
                    showToast(`已选择 ${activeCount} 个筛选条件`);
                }
                
                updateResultsCount();
            });
        });
        
        // 高级筛选选项点击
        filterOptions.forEach(option => {
            option.addEventListener('click', function() {
                // 获取同一组的所有选项
                const parentSection = this.closest('.filter-options');
                parentSection.querySelectorAll('.filter-option').forEach(opt => {
                    opt.classList.remove('active');
                });
                
                // 激活当前选项
                this.classList.add('active');
            });
        });
        
        // 排序选项点击
        sortOptions.forEach(option => {
            option.addEventListener('click', function() {
                sortOptions.forEach(opt => opt.classList.remove('active'));
                this.classList.add('active');
                const sortType = this.querySelector('span').textContent;
                showToast(`已按${sortType}排序`);
            });
        });
        
        // 筛选抽屉控制
        filterFab.addEventListener('click', function() {
            filterDrawer.classList.add('open');
            filterOverlay.classList.add('show');
        });
        
        closeDrawer.addEventListener('click', closeFilterDrawer);
        filterOverlay.addEventListener('click', closeFilterDrawer);
        
        function closeFilterDrawer() {
            filterDrawer.classList.remove('open');
            filterOverlay.classList.remove('show');
        }
        
        // 重置筛选条件
        resetFiltersBtn.addEventListener('click', function() {
            // 重置抽屉内的筛选条件
            document.querySelectorAll('.drawer-content .filter-option').forEach(option => {
                option.classList.remove('active');
                if (option.textContent === '全部') {
                    option.classList.add('active');
                }
            });
            
            showToast('已重置筛选条件');
        });
        
        // 应用抽屉筛选条件
        applyFiltersBtn.addEventListener('click', function() {
            // 收集选中的筛选条件
            const selectedFilters = [];
            document.querySelectorAll('.drawer-content .filter-option.active:not(:contains("全部"))').forEach(option => {
                selectedFilters.push(option.textContent);
            });
            
            closeFilterDrawer();
            showToast(`已应用 ${selectedFilters.length} 个高级筛选条件`);
            updateResultsCount();
        });
        
        // 移除搜索标签
        removeTags.forEach(tag => {
            tag.addEventListener('click', function() {
                const tagText = this.parentElement.querySelector('span').textContent;
                this.parentElement.remove();
                showToast(`已移除筛选: ${tagText}`);
                updateResultsCount();
            });
        });
        
        // 保存搜索条件
        saveSearchBtn.addEventListener('click', function() {
            const icon = this.querySelector('i');
            if (icon.classList.contains('far')) {
                icon.classList.remove('far');
                icon.classList.add('fas');
                showToast('已保存搜索条件');
            } else {
                icon.classList.remove('fas');
                icon.classList.add('far');
                showToast('已取消保存');
            }
        });
        
        // 返回按钮
        backBtn.addEventListener('click', function() {
            history.back();
        });
        
        // 更新结果计数
        function updateResultsCount() {
            const activeFilters = document.querySelectorAll('.filter-chip.active').length + 
                                 document.querySelectorAll('.search-tag').length;
            
            let resultsCount = 24;
            if (activeFilters > 3) {
                resultsCount = Math.floor(Math.random() * 10) + 1;
            }
            
            document.querySelector('.results-count').textContent = `找到 ${resultsCount} 个职位`;
            
            // 显示空状态（如果结果为0）
            if (resultsCount === 0) {
                jobList.style.display = 'none';
                emptyState.classList.add('active');
            } else {
                jobList.style.display = 'block';
                emptyState.classList.remove('active');
            }
        }
        
        // 空状态清除筛选按钮
        document.querySelector('.empty-action').addEventListener('click', function() {
            // 重置所有筛选条件
            filterChips.forEach(chip => {
                chip.classList.remove('active');
                if (chip.textContent.includes('全部职位')) {
                    chip.classList.add('active');
                }
            });
            
            // 移除所有搜索标签
            document.querySelectorAll('.search-tag').forEach(tag => tag.remove());
            
            // 重置高级筛选
            document.querySelectorAll('.filter-option').forEach(option => {
                option.classList.remove('active');
                if (option.textContent === '全部') {
                    option.classList.add('active');
                }
            });
            
            // 更新结果
            jobList.style.display = 'block';
            emptyState.classList.remove('active');
            updateResultsCount();
            showToast('已清除所有筛选条件');
        });
        
        // 提示消息功能
        function showToast(message) {
            const toast = document.getElementById('toast');
            toast.textContent = message;
            toast.classList.add('show');
            
            setTimeout(() => {
                toast.classList.remove('show');
            }, 2000);
        }
        
        // 扩展contains选择器
        (function() {
            const contains = window.Element.prototype.contains;
            window.Element.prototype.contains = function(text, caseSensitive) {
                if (typeof text !== 'string') return contains.call(this, text);
                if (!caseSensitive) text = text.toLowerCase();
                return Array.from(this.childNodes).some(node => {
                    if (node.nodeType === Node.TEXT_NODE) {
                        return caseSensitive ? node.textContent.includes(text) : node.textContent.toLowerCase().includes(text);
                    }
                    return node.contains(text, caseSensitive);
                });
            };
        })();
    </script>
</body>
</html>

